{include file="header.tpl"}
{include file="menu.tpl"}

{literal}
<script language="javascript" type="text/javascript" src="../js/tiny_mce/tiny_mce.js"></script>

<script language="javascript" type="text/javascript">

tinyMCE.init({
        mode : "textareas",
		theme : "advanced",

        convert_fonts_to_spans : true,
		theme_advanced_buttons1 : "bold,italic,underline,undo,redo,link,unlink,image,forecolor,fontsizeselect ,fontselect,removeformat,cleanup,code",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "bottom",
		theme_advanced_toolbar_align : "center",
});
</script> 
{/literal}

{$info_action}

{foreach item = a from = $announcements}
	{$a.add_date} <br/>
	{$a.title} <br/>
	{$a.content} <br/>
{/foreach}
<form method="post" action="announcement.php">
	<input type="text" id="title" name="title"/>
	<textarea id="content" name="content" cols="85" rows="10"></textarea>
	<input type="submit" class="button b_blue" name="add" value="Dodaj ogłoszenie" />
<form>
{include file="footer.tpl"}